<?php
list($callback_id, $css_path) = Common::subset();
?>
<?php if ($css_path) { ?>
var s = document.createElement('link');
s.type = "text/css";
s.rel = "stylesheet";
<?php if ($callback_id) {?>
s.onload = function() {
    webfont.callback(<?php echo $callback_id; ?>);
}
<?php }?>
var _url = '?nocache=' + Math.random();
s.href = "<?php echo Common::httpUri($css_path, $_SERVER['HTTP_HOST']); ?>" + _url;

(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(s);
<?php } else { ?>
//unkonw error..
console.log("can not load font");
<?php } ?>